package com.hanson.mapper;

import com.hanson.entity.SpreadInfoBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpreadInfoBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SpreadInfoBean record);

    SpreadInfoBean selectByPrimaryKey(Integer id);

    List<SpreadInfoBean> selectAll();

    List<SpreadInfoBean> selectByChildId(@Param("childId") String childId);

    List<SpreadInfoBean> selectByParentId(@Param("parentId") String parentId);

    int updateByPrimaryKey(SpreadInfoBean record);
}